<?php
declare(strict_types=1);

namespace app\model;

use think\Model;

class UserWithdrawRecord extends Model
{
    protected $autoWriteTimestamp = true;

    // 提现状态常量
    const STATUS_PENDING = 0; // 待审核
    const STATUS_APPROVED = 1; // 审核通过
    const STATUS_REJECTED = 2; // 审核拒绝

    // 账号类型常量
    const TYPE_ALIPAY = 'alipay'; // 支付宝
    const TYPE_BANK = 'bank'; // 银行卡
    const TYPE_WECHAT = 'wechat'; // 微信

    // 关联用户
    public function user()
    {
        return $this->belongsTo(User::class);
    }
} 